package com.nickstumpos.android.easyVolume.scheduler.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;

import com.nickstumpos.android.easyVolume.preset.types.PresetIdentifier;
import com.nickstumpos.android.easyVolume.scheduler.days.DayOfWeek;

public class SchedulingInfoDto implements Serializable {

	/**
	 * 
	 */
	private static final long	serialVersionUID	= -8944304484851706819L;
	private List<DayOfWeek>		days;
	private Calendar					scheduledTime;
	private boolean						repeating;
	private PresetIdentifier	preset;
	private int								code;
	private String						name;
	private int								spinnerPosition		= 0;

	public SchedulingInfoDto() {
		this.days = new ArrayList<DayOfWeek>();
	}

	/**
	 * @return the code
	 */
	public int getCode() {
		return this.code;
	}

	/**
	 * @return the days
	 */
	public List<DayOfWeek> getDays() {
		return this.days;
	}

	public String getName() {
		return this.name;
	}

	/**
	 * @return the preset
	 */
	public PresetIdentifier getPreset() {
		return this.preset;
	}

	/**
	 * @return the scheduledTime
	 */
	public Calendar getScheduledTime() {
		return this.scheduledTime;
	}

	/**
	 * @return the spinnerPosition
	 */
	public int getSpinnerPosition() {
		return this.spinnerPosition;
	}

	/**
	 * @return the repeating
	 */
	public boolean isRepeating() {
		return this.repeating;
	}

	/**
	 * @param code
	 *          the code to set
	 */
	public void setCode(int code) {
		this.code = code;
	}

	/**
	 * @param days
	 *          the days to set
	 */
	public void setDays(List<DayOfWeek> days) {
		this.days = days;
	}

	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @param preset
	 *          the preset to set
	 */
	public void setPreset(PresetIdentifier preset) {
		this.preset = preset;
	}

	/**
	 * @param repeating
	 *          the repeating to set
	 */
	public void setRepeating(boolean repeating) {
		this.repeating = repeating;
	}

	/**
	 * @param scheduledTime
	 *          the scheduledTime to set
	 */
	public void setScheduledTime(Calendar scheduledTime) {
		this.scheduledTime = scheduledTime;
	}

	/**
	 * @param spinnerPosition
	 *          the spinnerPosition to set
	 */
	public void setSpinnerPosition(int spinnerPosition) {
		this.spinnerPosition = spinnerPosition;
	}

}
